package cn.jiangjiesheng.bootstrap.database.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;

import java.util.Map;

/**
 * Created by dev@jiangjiesheng.cn on 2021/11/12  <br/>
 *
 * @author dev@jiangjiesheng.cn
 */
@Primary
@Data
@Configuration
@ConfigurationProperties(prefix = MyDataSourceProperties.prefix, ignoreUnknownFields = true)
public class MyDataSourceProperties {

    public final static String prefix = "spring";

    private Map<String, Map<String, DataSourceDefinition>> datasource;

}
